<template>
    <div class="axios">
        
    </div>
</template>
<script>
// getCurrentInstance  获取挂载全局的方法
import {getCurrentInstance} from 'vue'
export default {
    setup(props) {
        console.log(getCurrentInstance());
        let {proxy} = getCurrentInstance()
        proxy.$axios.get('data.json').then(res=>{
            console.log(res);
        })
        console.log(proxy.$aa());
    }
}
</script>